﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using SmartMap.Data.DataAccess;

namespace SmartMap.Domain.Handlers
{
    class ComponentHandler : SmartMapBaseHandler
    {
        private string _output;
        public override string Output
        {
            get
            {
                return _output;
            }
        }

        public ComponentHandler()
            : base(HttpContext.Current)
        {

        }

        public void GetComponentsByAdminID()
        {
            _output = ToJson(ComponentData.GetComponentsByAdminID(Admin.Current.AdminID));
        }
    }
}
